package com.hns.can.master.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.hns.can.master.vo.HomeAirConditionIndexVo;
import com.hns.frame.service.CommonService;
import com.hns.tool.pub.PubUtil;

@Service
public class HomeAirConditionService extends CommonService {

	public HomeAirConditionIndexVo getTotalIndex(Map params) {
		List<HomeAirConditionIndexVo> list = PubUtil.convertListMapToObject(
				this.sqlMapDao.selectList("homeAirCondition.getTotalIndex", params), HomeAirConditionIndexVo.class);
		if(PubUtil.isNotEmpty(list)){
			return list.get(0);
		}else{
			return null;
		}
	}
	
}
